package com.reran.spring.study.homework.h02;

import com.reran.spring.study.homework.h02.model.Student;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @description:
 * @author: WangSiTeng
 * @date: 2021/12/6
 */
public class AnnotationApplication {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");

        Student bean01 = (Student) context.getBean("Bean01");
        System.out.println(bean01);

    }
}
